<#if blogItems??>
<#assign blogs = blogItems.items>
<table id="blog_table">
	<tr><th>时间</th><th>url-title</th><th>thumbnail</th><th>introduction</th>
	<th>title</th><th>meta-title</th>	<th>meta-desciption</th><th>meta-keywords</th>
	<th>分类</th><th>tags</th><th>状态</th><th>操作</th>
	</tr>
	<#if blogs?size &gt; 0>
	<#list blogs as blog>
		<#assign status = blog.status>
		<tr>
			<td>${(blog.created)?date}</td>
			<td>${blog.urlTitle}</td><td>${blog.thumbnail}</td>
			<td width="20%">${blog.introduction}</td>
			<td>${blog.title}</td><td>${blog.metaTitle}</td><td width="20%">${blog.description}</td>
			<td width="15%">${blog.keywords}</td>			
			<td>${(blog.category)!''}</td><td>${(blog.tags)!''}</td>
			<td><#if status == 0>草稿<#elseif status == 1>已发布<#else>已删除</#if></td>
			<td width="8%">
				<a href="${contextPath}/admin/blog/preview/${blog.id}" target="_blank">预览</a> 
			    <#if status == 0>
				| <a href="${contextPath}/admin/blog/update/${blog.id}" target="_blank">更新</a>
				| <a href="javascript:;" class="delete" bid="${blog.id}">删除</a>
				| <a href="javascript:;" class="release" bid="${blog.id}">发布</a>
				<#elseif status == 1>
				| <a href="${contextPath}/admin/blog/update/${blog.id}" target="_blank">更新</a>
				| <a href="javascript:;" class="cancle" bid="${blog.id}" title="取消发布状态, 切换到草稿状态">下架</a>
				<#else>
				| <a href="javascript:;" class="recall" bid="${blog.id}" title="重新切换到草稿状态">取回</a>
				</#if>
			</td>
		</tr>		
	</#list>
		<#include "/macro/new_pager.ftl">	
		<#assign preUrl = contextPath + "/admin/blog/query?page={page}">
		<#assign page = blogItems.pageNo>	
		<#assign pageCount = blogItems.pageCount>		
		<tr class="paging-tr"><td colspan="10"><@pager preUrl page pageCount /></td></tr>
	<#else>
		<tr><td colspan="10">No Records</td></tr>
	</#if>
</table>
<#else>
<p>no blog...</p>
</#if>